package com.jd.sentinelspringboot.controller;

import com.jd.sentinelspringboot.apollo.JavaConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApolloController {

    @Autowired
    private JavaConfigBean javaConfigBean;

    @RequestMapping("/index")
    public String index(){
        System.out.println("timeout:"+javaConfigBean.getTimeout());
        System.out.println("newKey:"+javaConfigBean.getNewKey());
        return "index";
    }

}
